@import "color";
@import "mixin";

.free-bar {
  width: 100%;
  height: 120px;
  background: url("../image/comps/bar_free.png") 50% 50% no-repeat;
  margin-bottom: 50px;

  .inner {
    margin: 0 auto;
    width: 1200px;

    .btn {
      float: right;
      margin-top: 30px;
      width: 210px;
      height: 60px;
      line-height: 60px;
      background: #fff;
      border-radius: 8px;
      font-size: 24px;
      color: #333;
      text-align: center;
      font-weight: 500;
      cursor: pointer;

      &:hover {
        background: $md-red;
        color: #fff;
      }
    }
  }
}

.overlay {
  background: rgba(0, 0, 0, 0.7);
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  z-index: 1001;
}

:global(.free-box-flash) {
  animation-name: free-box-flash;
}

@keyframes free-box-flash {
  0% {
    bottom: -619px;
  }
  100% {
    bottom: 0;
  }
}

@-webkit-keyframes light-breathe {
  0% {
    opacity: .8;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
  }
  100% {
    opacity: 1;
    box-shadow: 0 1px 30px rgba(255, 255, 255, 1);
  }
}

@-webkit-keyframes light-breathe-yellow {
  0% {
    opacity: .8;
    box-shadow: 0 1px 2px rgba(242, 232, 9, 0.1);
  }
  100% {
    opacity: 1;
    box-shadow: 0 1px 30px rgba(242, 232, 9, 1);
  }
}


.free-box {
  z-index: 1003;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 619px;
  transition: bottom 0.3s;
  -webkit-animation: free-box-flash .3s;
  background: url("../image/comps/bg_free_box.png") 50% 50% no-repeat;

  .close {
    position: absolute;
    top: 80px;
    left: 50%;
    margin-left: 600px;
    width: 32px;
    height: 32px;
    background: url("../image/comps/icon_close.png") center top no-repeat;
    background-size: contain;
    cursor: pointer;
  }

  .inner {
    position: absolute;
    top: 220px;
    left: 50%;
    margin-left: -550px;
    width: 1100px;
    height: 400px;
    padding: 18px 30px;

    .light {
      float: left;
      width: 44px;
      padding-top: 20px;

      li {
        width: 44px;
        height: 44px;
        border-radius: 100%;
        background: #fff;
        margin-bottom: 18px;
        animation-timing-function: ease-in-out;
        animation-name: light-breathe;
        animation-duration: 2700ms;
        animation-iteration-count: infinite;
        animation-direction: alternate;

        &:nth-child(2n+2) {
          background: rgb(242, 232, 9);
          animation-name: light-breathe-yellow;
        }

      }
    }

    .center-box {
      float: left;
      width: 950px;
      height: 400px;

      .timeout {
        position: relative;
        left: 50%;
        margin-left: -250px;
        width: 500px;
        height: 40px;
        line-height: 40px;
        font-size: 24px;
        color: #fff;
        font-weight: 500;

        .txt {
          float: left;
        }

        .label {
          float: left;
          background: #EC3E47;
          width: 70px;
          height: 40px;
          line-height: 40px;
          text-align: center;
          letter-spacing: 5px;
          margin: 0 5px;
          border-radius: 4px;
        }
      }

      .info-box {
        position: relative;
        left: 50%;
        margin-left: -430px;
        margin-top: 20px;
        width: 860px;
        height: 180px;
        background: rgba(0, 0, 0, 0.7);
        padding: 25px 60px;

        .line {
          width: 100%;
          height: 60px;
          margin-bottom: 30px;

          .p {
            float: left;
            width: 140px;
            line-height: 50px;
            font-size: 24px;
            color: #fff;
          }

          .input {
            float: left;
            background: #fff;
            width: 500px;
            height: 50px;
            border-radius: 8px;
            padding: 0 10px;
            font-size: 18px;
            color: #333;
            letter-spacing: 1.5px;
          }
        }
      }


      .btn {
        position: relative;
        margin-top: 20px;
        left: 50%;
        margin-left: -280px;
        width: 560px;
        height: 70px;
        line-height: 70px;
        text-align: center;
        font-weight: 700;
        background: #F12D37;
        box-shadow: 0 2px 174px 0 rgba(0, 0, 0, 0.50);
        border-radius: 37px;
        font-size: 30px;
        color: #fff;
        letter-spacing: 2.38px;
        cursor: pointer;
      }

    }


  }

}

.common-content {
  width: 100%;
  padding: 10px;
  background: #fff;
  text-align: justify;
  line-height: 1.5;

  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    -webkit-box-sizing: border-box !important;
    word-wrap: break-word !important;
  }

  img {
    max-width: 100% !important;
    width: auto;
    height: auto !important;
    margin: 0 auto;
    display: block;
  }

  p {
    line-height: 1.5;
    word-break: break-all;
  }

  pre {
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  table {
    border: 0;
    border-collapse: collapse;
    empty-cells: show;
    max-width: 100%;
    width: 100% !important;
    table-layout: fixed;

    td, th {
      border: 1px solid $line-grey;
      width: auto !important;
    }
  }

}

.namecard-dialog {
  z-index: 1002;
  position: fixed;
  top: 120px;
  left: 50%;
  margin-left: -120px;
  width: 300px;
  height: 400px;
  border-radius: 8px;
  background: #fff;

  .close {
    position: absolute;
    right: 7px;
    top: 7px;
    display: block;
    width: 22px;
    height: 22px;
    background: url("../image/common/btn_close.png") center no-repeat;
    background-size: 50%;
    cursor: pointer;
  }

  .inner {
    width: 300px;
    height: 400px;

    .card-title {
      width: 90%;
      margin: 20px 5%;
      height: 70px;
      padding-bottom: 20px;
      text-align: center;
      border-bottom: 1px solid $line-grey;

      .title {
        line-height: 30px;
        font-size: 18px;
        overflow: hidden;
      }

      p {
        color: $font-gray;
        font-size: 14px;
        line-height: 20px;
        margin-top: 10px;
      }
    }

    .card-qrcode {
      width: 200px;
      height: 200px;
      margin-left: 50px;
    }

    .tip {
      font-size: 13px;
      width: 100%;
      text-align: center;
      line-height: 30px;
    }
  }

}

.training-project {
  height: 640px;

  .inner {
    width: 1080px !important;

    .s-title {
      margin-top: 20px;
    }

    .carousel-block {
      width: 100%;
      height: 400px;
      margin-top: 80px;
      background: #fff;
      box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.08);
      display: flex;
      flex-flow: row;

      .ant-carousel {
        width: 660px;

        .slick-slider {

          .item {
            width: 660px;
            height: 400px;

            img {
              flex: 0 0 660px;
              width: 660px;
              height: 400px;
            }
          }

          .slick-dots {
            width: 200px;
            position: absolute;
            right: -400px;
            bottom: 20px;
            text-align: right;

            li {
              width: 8px;
              height: 8px;
              border-radius: 100%;

              button {
                width: 8px;
                height: 8px;
                border-radius: 100%;
                cursor: pointer;
                background: $font-light;
              }
            }

            .slick-active {
              button {
                background: $font-gray;
              }
            }
          }
        }
      }

      .info {
        width: 420px;
        padding: 30px 45px;

        .i-title {
          font-size: 24px;
          color: #000;
          font-weight: 500;
        }

        .i-descr {
          font-size: 14px;
          color: #000;
          line-height: 30px;
          font-weight: 400;
        }
      }
    }
  }
}

.course-chapters {
  background: $bg-grey;

  .inner {

    .course-block {
      width: 100%;
      margin: 40px 0;

      .chapter {
        width: 100%;
        position: relative;
        margin-bottom: 25px;

        .tag {
          z-index: 2;
          position: absolute;
          left: -100px;
          top: 30px;
          width: 190px;
          height: 70px;
          line-height: 70px;
          font-size: 30px;
          font-weight: 400;
          color: #fff;
          text-align: center;
          background: #FF4568;
          box-shadow: 0 12px 27px 0 rgba(255, 43, 83, 0.26);
          border-radius: 11px;
        }

        .box {
          width: 1180px;
          min-height: 100px;
          background: #fff;
          box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.09);
          border-radius: 16px;
          padding: 30px 30px 20px 130px;
          position: relative;

          .top {
            width: 100%;
            height: 70px;
            line-height: 70px;
            position: relative;

            .title {
              position: relative;
              float: left;
              font-size: 30px;
              color: #000;
              padding: 0 20px 0 40px;
              text-align: left;
              font-weight: 500;
              background: #fff;
            }

            .num {
              position: relative;
              width: 180px;
              height: 70px;
              float: right;
              background: #fff;
              text-align: center;
              font-size: 20px;
              color: #000;
            }

            &:before {
              position: absolute;
              left: 0;
              top: 35px;
              content: '';
              width: 100%;
              border-bottom: 2px dashed $line-grey;
            }

          }

          .lessons {
            background: $bg-grey;
            border-radius: 13px;
            padding: 25px 30px;
            min-height: 100px;

            li {
              line-height: 30px;
              font-size: 15px;

              a {
                color: #000;
              }
            }
          }

          &:before {
            position: absolute;
            left: -30px;
            height: calc(100% - 140px);
            top: 120px;
            content: '';
            border-left: 2px dashed #FE77A5;
          }

          &:after {
            position: absolute;
            content: '';
            left: -33px;
            top: calc(100% - 20px);
            width: 0;
            border-width: 4px;
            border-style: solid;
            border-color: #FE77A5 transparent transparent transparent; /* transparent 设置边框颜色透明 */
          }

        }
      }
    }

  }
}

.robot {
  position: fixed;
  right: 40px;
  bottom: 200px;
  background: url("../image/comps/robot.gif") center no-repeat;
  background-size: contain;
  width: 120px;
  height: 140px;
  cursor: pointer;
}

.robot-comment {

  .comments {
    height: 320px;
    overflow: scroll;
  }

  .ant-avatar, .ant-comment-avatar {
    img {
      background: $font-light;
    }
  }

}